package com.intelligent.bot.service;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.intelligent.bot.base.exception.E;
import com.intelligent.bot.base.result.B;
import com.intelligent.bot.dao.ClassifyDao;
import com.intelligent.bot.dao.ClassifyVideoDao;
import com.intelligent.bot.model.Classify;
import com.intelligent.bot.model.ClassifyVideo;
import com.intelligent.bot.model.Video;
import com.intelligent.bot.model.base.BaseDeleteEntity;
import com.intelligent.bot.model.req.ClassifyAddReq;
import com.intelligent.bot.model.req.ClassifyGetListReq;
import com.intelligent.bot.model.req.ClassifyUpdateReq;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(rollbackFor = E.class)
public class ClassifyVideoServiceImpl extends ServiceImpl<ClassifyVideoDao, ClassifyVideo> implements IClassifyVideoService {

    @Override
    public List<Video> getVideoListByClassifyId(Long classifyId) {
        return this.baseMapper.getVideoListByClassifyId(classifyId);
    }

    @Override
    public List<Video> videoList(Long classifyId) {
        return this.baseMapper.videoList(classifyId);
    }
}
